<template>
    <div class="resetSuccess">
        <assets-head :title="title" :goPerpetualContract="goHome" />
        <div class="content">
            <div class="imgBox"><img src="@/assets/image/success.png" alt=""></div>
            <div class="textColor mt-24 font-700 font-54">{{ $t('提交成功') }}</div>
            <div class="text-grey mt-12">{{ $t('您的资料已成功上传') }}!</div>
            <div class="text-grey mt-88">{{ $t('系统将在三个工作日内审核完毕，请您耐心等候。') }}</div>
            <div class="btn mt-54" @click="$router.push('/')">{{ $t('返回') }}</div>
        </div>
    </div>
</template>

<script>
import assetsHead from "@/components/assets-head";
export default {
    props: {

    },
    components: {
        assetsHead
    },
    data() {
        return {
            title: '',
            goHome: true
        }
    },
    mounted() {
        let type = this.$route.query.type;
        this.init(type);
    },
    methods: {
        init(type) {
            if (type == 1) {
                this.title = this.$t("重置手机号");
            } else if (type == 2) {
                this.title = this.$t("重置邮箱");
            } else if (type == 3) {
                this.title = this.$t("重置谷歌验证");
            } else {
                this.title = this.$t("重置资金密码");
            }
        },
    }
}
</script>

<style lang="scss" scoped>
.resetSuccess {
    width: 100%;
    box-sizing: border-box;
}

.content {
    font-size: 24px;
    padding: 32px;
    text-align: center;
}

.imgBox {
    width: 122px;
    height: 122px;
    margin: auto;

    img {
        width: 100%;
        height: 100%;
    }
}

.btn {
    @include themify() {
        background: themed("btn_main");
    }

    color: #fff;
    height: 88px;
    line-height: 88px;
    text-align: center;
    font-size: 32px;
    border-radius: 10px;
}
</style>